import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import store from './redux/store'
import {Provider} from 'react-redux'
//引入antd的样式
import 'antd/dist/antd.css'
import './styles/kh-customer.scss'
import {BrowserRouter} from 'react-router-dom'
React.Component.prototype.$httpReq=()=>{
  console.log("这是请求方法")
}
// store.subscribe(()=>{
//   ReactDOM.render(<App/>,document.getElementById('root'))
// })
ReactDOM.render(
  <BrowserRouter>
    <Provider store={store}>
      <App/>
    </Provider>,
  </BrowserRouter>,
	/* 此处需要用Provider包裹App，目的是让App所有的后代容器组件都能接收到store */
	document.getElementById('root')
)
